#ifndef _CAMER_OPS_H_
#define _CAMER_OPS_H_
#include <QtGui>
#include <QTimer>
extern "C" {
#include "tools/i2cled.h"
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <malloc.h> 
#include <memory.h> 
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <pthread.h>
#include <setjmp.h>
#include <linux/videodev2.h>
#include <assert.h>
#include <pthread.h>
#include "platform.h"
#include "avilib.h"
}
class camer_ops  : public QThread
{
	Q_OBJECT

	public:
		camer_ops(void);
		~camer_ops(void);
	public:
		void showpicfSet_status(bool i);
		void run();
	public:
		QTimer *Phototimeer;
		QTimer *osdtimer;
		bool save_video = false;
		int photo = 0;
		bool is_show = true;
        bool is_cameraopen = false;
		int full = 1;
        int displaywidth  = DISPLAY_WIDTH;
		int displayheight = SCREEN_HEIGHT;
	public slots:
		void save_photo_slot(char *);
		void save_video_slot(char *);
		void displayChange(int hdmi);
		void closeSavephoto();
		void osdupdate();
        void video_freezz_frame(int state);
};


#endif



